package com.ruoyi.jjyh.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 次数变动记录对象 jjyh_timesrecord
 * 
 * @author ruoyi
 * @date 2020-12-02
 */
public class JjyhTimesrecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String userName;

    /** 方式（0增加1减少） */
    @Excel(name = "方式", readConverterExp = "0=增加1减少")
    private String recordPath;

    /** 类型（0注册赠送1购买月卡2购买年卡3订单消耗） */
    @Excel(name = "类型", readConverterExp = "0=注册赠送1购买月卡2购买年卡3订单消耗")
    private String recordType;

    /** 关联订单ID */
    @Excel(name = "关联订单ID")
    private String orderId;

    /** 关联订单 */
    @Excel(name = "关联订单")
    private String orderNo;

    /** 次数 */
    @Excel(name = "次数")
    private Integer recordTimes;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setRecordPath(String recordPath) 
    {
        this.recordPath = recordPath;
    }

    public String getRecordPath() 
    {
        return recordPath;
    }
    public void setRecordType(String recordType) 
    {
        this.recordType = recordType;
    }

    public String getRecordType() 
    {
        return recordType;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setRecordTimes(Integer recordTimes) 
    {
        this.recordTimes = recordTimes;
    }

    public Integer getRecordTimes() 
    {
        return recordTimes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("recordPath", getRecordPath())
            .append("recordType", getRecordType())
            .append("orderId", getOrderId())
            .append("recordTimes", getRecordTimes())
            .append("createTime", getCreateTime())
            .toString();
    }
}
